//------ Non-reversal strategy, both Long and Short positions -----
Switch (MarketPosition) 
Begin
  Case 0: //currently in Neutral
    If Predicted >= BUYTHRESHOLD Then Buy next bar at open; 
    If Predicted <= SELLTHRESHOLD Then SellShort next bar at open; 
  Case 1: //currently in Long
    If Predicted < BUYTHRESHOLD Then Sell next bar at open; 
  Case -1: //currently in Short
    If Predicted > SELLTHRESHOLD Then BuyToCover next bar at open; 
End;
####
//------ Non-reversal strategy, Long positions only -----
Switch (MarketPosition) 
Begin
  Case 0: //currently in Neutral
    If Predicted >= BUYTHRESHOLD Then Buy next bar at open; 
  Case 1: //currently in Long
    If Predicted < BUYTHRESHOLD Then Sell next bar at open; 
End;
####
//------ Non-reversal strategy, Short positions only -----
Switch (MarketPosition) 
Begin
  Case 0: //currently in Neutral
    If Predicted <= SELLTHRESHOLD Then SellShort next bar at open; 
  Case -1: //currently in Short
    If Predicted > SELLTHRESHOLD Then BuyToCover next bar at open; 
End;
####
//------ True-reversal strategy -----
If Predicted >= BUYTHRESHOLD Then Buy next bar at open;
If Predicted <= SELLTHRESHOLD Then SellShort next bar at open;
####
//------ True-reversal strategy, true/false -----
If Predicted <> 0 then Buy next bar at open else SellShort next bar at open;
